//
//  XMYYSyetemSettingViewController.m
//  GBKHOME
//
//  Created by 伯纳德 on 2017/9/24.
//
//

#import "XMYYSyetemSettingViewController.h"
#import "XMYYSystemSettingDetailViewController.h"

@interface XMYYSyetemSettingViewController ()

@end

@implementation XMYYSyetemSettingViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    //背景图
    UIImageView *bgIV = [[UIImageView alloc]initWithFrame:self.view.frame];
    bgIV.image = [UIImage imageNamed:@"mainbg"];
    [self.view addSubview:bgIV];
    
    //返回按钮
    UIButton *backBtn = [[UIButton alloc]initWithFrame:CGRectMake(10, 30, 34, 34)];
    [backBtn setImage:[UIImage imageNamed:@"changpwd_back"] forState:UIControlStateNormal];
    [backBtn addTarget:self action:@selector(backBtnClick) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:backBtn];
    
    //标题
    UILabel *titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, 30, [UIScreen mainScreen].bounds.size.width, 34)];
    titleLabel.text = @"场景设置";
    titleLabel.textColor = [UIColor colorWithRGBColorByString:@"#c2e6f9"];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    titleLabel.font = [UIFont systemFontOfSize:15];
    [self.view addSubview:titleLabel];
    
    //线
    UIView *lineView_w = [[UIView alloc]initWithFrame:CGRectMake(0, 64, [UIScreen mainScreen].bounds.size.width, 0.3)];
    lineView_w.backgroundColor = [UIColor colorWithRed:(237)/255.0 green:(237)/255.0 blue:(87)/255.0 alpha:0.5];
    [self.view addSubview:lineView_w];
    
}

- (void)backBtnClick{
    
    [self dismissViewControllerAnimated:YES completion:nil];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    
}



@end
